package sjtu.FaceRecognition;

import java.text.SimpleDateFormat;
import java.util.Date;
import android.content.Context;
import android.os.Build.VERSION;

public class CommonUtil {
	public static int PIC_WIDTH = 320;
	public static int PIC_HEIGHT = 240;
	
	//analyze info
	public static int COLLECT_INTERVAL = 1000;
	public static int COLLECT_COUNT = 100;
	public static boolean USE_NETWORK = true;
	
	//media info
	public static final String PIC_FILE_TYPE = "jpg";
	public static final String VIDEO_FILE_TYPE = "mp4";
	public static final int pic_quality = 50;
	
	//network info
	public static String SERVER_URL = "http://202.120.34.39:8080/"; 
	public static final String SERVER_PATH = "MobileLearningFaceRecognitionServer/get_result.action";
	public static final int NETWORK_TIME_OUT = 10000;
	public static final int REQUEST_SUCCESS_CODE = 200; 
	public static final String BOUNDRAY = "---------------------------7d4a6d158c9";
	public static String myUsername = "android_client";
	public static boolean IS_REAL_TIME = true;
	
	public static String getCurrentTimeString() {
		return new SimpleDateFormat("yyyyMMdd_HHmmss_SSS").format(new Date());
	}
	
	public static final int BUFFER_SIZE = 4096;
	//encode/decode info
	public static final String ENCODING = "UTF-8";
	
	//global info
	public static final boolean USE_FRONT_CAMERA = true;
	public static final int CUR_SDK = VERSION.SDK_INT;
	public static final boolean DEBUG_LOG = true;
	
	public static final String NO_FACE = "no face";
	public static final String EMO_HAPPY = "happy";
	public static final String EMO_NEUTRAL = "neutral";
	public static final String EMO_SAD = "sad";
}
